package com.share.design.visit;

/**
 * author:caifan
 * date:2020/2/5
 */
public class ConcreteVisitorA implements Visitor {
    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者A:" + element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者A:" + element.operationB());
    }
}
